/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * SalesManagement.java
 *
 * Created on 2011-10-21, 11:30:06
 */
package JavaApplication1;

/**
 *
 * @author mengqingyi
 */
public class SalesManagement extends javax.swing.JFrame {
	// Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextArea GiftsListTable_sales;
    
    private javax.swing.JLabel VIPICLabel_return;
    private javax.swing.JLabel VIPIDLabel_sales;
    private javax.swing.JLabel billIDLabel_sales;
    private javax.swing.JLabel discountLabel_sales;
    private javax.swing.JLabel giftsListLabel_sales;
    private javax.swing.JLabel goodsList_sales;
    private javax.swing.JLabel paymentLabel_sales;
    private javax.swing.JLabel returnIDLabel;
    private javax.swing.JLabel returnGiftLabel;
    private javax.swing.JLabel returnListLabel;
    private javax.swing.JLabel returnSumLabel;
    private javax.swing.JLabel totalPriceLabel_sales;
    
    private javax.swing.JButton VIPIDHandIn_return;
    private javax.swing.JButton VIPIDHandIn_sales;
    private javax.swing.JButton VIPIDcancel_return;
    private javax.swing.JButton VIPIDcancel_sales;
    private javax.swing.JButton addGoods_sales;
    private javax.swing.JButton cancel1;
    private javax.swing.JButton cancel2;
    private javax.swing.JButton deleteChosenGoods_return;
    private javax.swing.JButton deleteChosenGoods_sales;
    private javax.swing.JButton showBillInfo_return;
    private javax.swing.JButton showGoodsInfo_return;
    private javax.swing.JButton showReturnInfo_return;
    private javax.swing.JButton yes1;
    private javax.swing.JButton yes2;
    
    private javax.swing.JScrollPane VIPIDInput_sales;
    private javax.swing.JScrollPane VIPInfoInput_return;
    private javax.swing.JScrollPane billIDInput_return;
    private javax.swing.JScrollPane creditsUsedInput_sales;
    private javax.swing.JScrollPane giftsList_sales;
    private javax.swing.JScrollPane goodsIDInput_return;
    private javax.swing.JScrollPane goodsIDInput_sales;
    private javax.swing.JScrollPane goodsInfo_return;
    private javax.swing.JScrollPane goodsList_sale;
    private javax.swing.JScrollPane returnGiftList;
    private javax.swing.JScrollPane returnList;
    
    private javax.swing.JTextPane VIPIDText_sales;
    private javax.swing.JTextPane VIPInfoText_return;
    private javax.swing.JTextPane billIDText_return;
    private javax.swing.JTextPane creditUsedText_sales;
    private javax.swing.JTextPane goodsIDText_return;
    private javax.swing.JTextPane goodsIDText_sales;
    
    private javax.swing.JTabbedPane basePanel;
    
    private javax.swing.JPanel billIDPanel;
    private javax.swing.JPanel checkPanel;
    private javax.swing.JPanel check_return;
    private javax.swing.JPanel customerInfoPanel_return;
    private javax.swing.JPanel customerInfoPanel_sales;
    private javax.swing.JPanel goodsIDPanel_return;
    private javax.swing.JPanel goodsIDPanel_sales;
    private javax.swing.JPanel returnHandlingPanel;
    private javax.swing.JPanel salesHandlingPanel;
    
    private javax.swing.JTextField billIDText_sales;
    private javax.swing.JTextField discountText_sales;
    private javax.swing.JTextField paymentText_sales;
    private javax.swing.JTextField returnIDText;
    private javax.swing.JTextField returnSumText;
    private javax.swing.JTextField totalPriceText_sales;
    
    private javax.swing.JComboBox cosType_return;
    private javax.swing.JComboBox cosType_sales;
    
    private javax.swing.JTable goodsInfoTable_return;
    private javax.swing.JTable goodsListTable_sale;
    private javax.swing.JTable returnListTable;
    private javax.swing.JTable returnGiftListTabel;
    
    private javax.swing.JRadioButton isCreditUsed_sales;
    // End of variables declaration//GEN-END:variables

    /** Creates new form SalesManagement */
    public SalesManagement() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        basePanel = new javax.swing.JTabbedPane();
        
        salesHandlingPanel = new javax.swing.JPanel();
        goodsIDPanel_sales = new javax.swing.JPanel();
        customerInfoPanel_sales = new javax.swing.JPanel();
        checkPanel = new javax.swing.JPanel();
        returnHandlingPanel = new javax.swing.JPanel();
        billIDPanel = new javax.swing.JPanel();
        goodsIDPanel_return = new javax.swing.JPanel();
        customerInfoPanel_return = new javax.swing.JPanel();
        check_return = new javax.swing.JPanel();
        
        goodsIDInput_sales = new javax.swing.JScrollPane();
        goodsList_sale = new javax.swing.JScrollPane();
        VIPIDInput_sales = new javax.swing.JScrollPane();
        creditsUsedInput_sales = new javax.swing.JScrollPane();
        giftsList_sales = new javax.swing.JScrollPane();
        billIDInput_return = new javax.swing.JScrollPane();
        goodsIDInput_return = new javax.swing.JScrollPane();
        goodsInfo_return = new javax.swing.JScrollPane();
        VIPInfoInput_return = new javax.swing.JScrollPane();
        returnGiftList = new javax.swing.JScrollPane();
        returnList = new javax.swing.JScrollPane();
        
        addGoods_sales = new javax.swing.JButton();
        VIPIDHandIn_sales = new javax.swing.JButton();
        VIPIDcancel_sales = new javax.swing.JButton();
        deleteChosenGoods_sales = new javax.swing.JButton();
        yes1 = new javax.swing.JButton();
        cancel1 = new javax.swing.JButton();
        showBillInfo_return = new javax.swing.JButton();
        showReturnInfo_return = new javax.swing.JButton();
        showGoodsInfo_return = new javax.swing.JButton();
        yes2 = new javax.swing.JButton();
        cancel2 = new javax.swing.JButton();
        deleteChosenGoods_return = new javax.swing.JButton();
        VIPIDHandIn_return = new javax.swing.JButton();
        VIPIDcancel_return = new javax.swing.JButton();
        
        goodsListTable_sale = new javax.swing.JTable();
        goodsInfoTable_return = new javax.swing.JTable();
        returnListTable = new javax.swing.JTable();
        returnGiftListTabel = new javax.swing.JTable();
        
        cosType_sales = new javax.swing.JComboBox();
        cosType_return = new javax.swing.JComboBox();
        
        VIPIDLabel_sales = new javax.swing.JLabel();
        totalPriceLabel_sales = new javax.swing.JLabel();
        paymentLabel_sales = new javax.swing.JLabel();
        discountLabel_sales = new javax.swing.JLabel();
        billIDLabel_sales = new javax.swing.JLabel();
        giftsListLabel_sales = new javax.swing.JLabel();
        goodsList_sales = new javax.swing.JLabel();
        returnListLabel = new javax.swing.JLabel();
        VIPICLabel_return = new javax.swing.JLabel();
        returnSumLabel = new javax.swing.JLabel();
        returnIDLabel = new javax.swing.JLabel();
        returnGiftLabel = new javax.swing.JLabel();
        
        VIPIDText_sales = new javax.swing.JTextPane();
        goodsIDText_sales = new javax.swing.JTextPane();
        creditUsedText_sales = new javax.swing.JTextPane();
        billIDText_return = new javax.swing.JTextPane();
        goodsIDText_return = new javax.swing.JTextPane();
        VIPInfoText_return = new javax.swing.JTextPane();
        
        discountText_sales = new javax.swing.JTextField();
        paymentText_sales = new javax.swing.JTextField();
        billIDText_sales = new javax.swing.JTextField();
        totalPriceText_sales = new javax.swing.JTextField();
        returnSumText = new javax.swing.JTextField();
        returnIDText = new javax.swing.JTextField();
        
        isCreditUsed_sales = new javax.swing.JRadioButton();
        
        GiftsListTable_sales = new javax.swing.JTextArea();
        
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("销售管理");

        basePanel.setDoubleBuffered(true);

        salesHandlingPanel.setBackground(new java.awt.Color(211, 220, 249));
        salesHandlingPanel.setPreferredSize(new java.awt.Dimension(837, 531));

        goodsIDPanel_sales.setBackground(new java.awt.Color(211, 220, 249));
        goodsIDPanel_sales.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "输入商品标识", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        goodsIDText_sales.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        goodsIDInput_sales.setViewportView(goodsIDText_sales);

        addGoods_sales.setText("添加");
        addGoods_sales.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addGoods_salesActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout goodsIDPanel_salesLayout = new javax.swing.GroupLayout(goodsIDPanel_sales);
        goodsIDPanel_sales.setLayout(goodsIDPanel_salesLayout);
        goodsIDPanel_salesLayout.setHorizontalGroup(
            goodsIDPanel_salesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(goodsIDPanel_salesLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(goodsIDInput_sales, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 111, Short.MAX_VALUE)
                .addComponent(addGoods_sales)
                .addGap(29, 29, 29))
        );
        goodsIDPanel_salesLayout.setVerticalGroup(
            goodsIDPanel_salesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(goodsIDPanel_salesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(goodsIDPanel_salesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(addGoods_sales)
                    .addComponent(goodsIDInput_sales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(11, Short.MAX_VALUE))
        );

        goodsListTable_sale.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        goodsListTable_sale.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null}
            },
            new String [] {
                "商品标识", "商品描述", "购买数量", "商品价格", "特价", "商品总价"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, true, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        goodsList_sale.setViewportView(goodsListTable_sale);
        goodsListTable_sale.getColumnModel().getColumn(5).setResizable(false);

        customerInfoPanel_sales.setBackground(new java.awt.Color(211, 220, 249));
        customerInfoPanel_sales.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "顾客信息", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        cosType_sales.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "VIP顾客", "普通顾客" }));
        cosType_sales.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cosType_salesActionPerformed(evt);
            }
        });

        VIPIDLabel_sales.setText("VIP标识：");

        VIPIDText_sales.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        VIPIDInput_sales.setViewportView(VIPIDText_sales);

        VIPIDHandIn_sales.setText("提交");

        VIPIDcancel_sales.setText("取消");

        javax.swing.GroupLayout customerInfoPanel_salesLayout = new javax.swing.GroupLayout(customerInfoPanel_sales);
        customerInfoPanel_sales.setLayout(customerInfoPanel_salesLayout);
        customerInfoPanel_salesLayout.setHorizontalGroup(
            customerInfoPanel_salesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(customerInfoPanel_salesLayout.createSequentialGroup()
                .addGroup(customerInfoPanel_salesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(customerInfoPanel_salesLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(customerInfoPanel_salesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cosType_sales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(customerInfoPanel_salesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(VIPIDcancel_sales)
                                .addGroup(customerInfoPanel_salesLayout.createSequentialGroup()
                                    .addComponent(VIPIDLabel_sales)
                                    .addGap(18, 18, 18)
                                    .addComponent(VIPIDInput_sales, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addGroup(customerInfoPanel_salesLayout.createSequentialGroup()
                        .addGap(23, 23, 23)
                        .addComponent(VIPIDHandIn_sales)))
                .addContainerGap(20, Short.MAX_VALUE))
        );
        customerInfoPanel_salesLayout.setVerticalGroup(
            customerInfoPanel_salesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(customerInfoPanel_salesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(cosType_sales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addGroup(customerInfoPanel_salesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(VIPIDInput_sales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(VIPIDLabel_sales))
                .addGap(18, 18, 18)
                .addGroup(customerInfoPanel_salesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(VIPIDHandIn_sales)
                    .addComponent(VIPIDcancel_sales))
                .addContainerGap(12, Short.MAX_VALUE))
        );

        checkPanel.setBackground(new java.awt.Color(211, 220, 249));
        checkPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "结算", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        totalPriceLabel_sales.setText("商品总价");

        paymentLabel_sales.setText("应付金额");

        discountLabel_sales.setText("折扣金额");

        isCreditUsed_sales.setBackground(new java.awt.Color(211, 220, 249));
        isCreditUsed_sales.setText("使用积分");

        discountText_sales.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        discountText_sales.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                discountText_salesActionPerformed(evt);
            }
        });

        paymentText_sales.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        creditUsedText_sales.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        creditsUsedInput_sales.setViewportView(creditUsedText_sales);

        billIDLabel_sales.setText("账单编号");

        billIDText_sales.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        totalPriceText_sales.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        giftsListLabel_sales.setText("赠品列表");

        GiftsListTable_sales.setColumns(20);
        GiftsListTable_sales.setRows(5);
        giftsList_sales.setViewportView(GiftsListTable_sales);

        javax.swing.GroupLayout checkPanelLayout = new javax.swing.GroupLayout(checkPanel);
        checkPanel.setLayout(checkPanelLayout);
        checkPanelLayout.setHorizontalGroup(
            checkPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(checkPanelLayout.createSequentialGroup()
                .addGroup(checkPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(checkPanelLayout.createSequentialGroup()
                        .addGap(31, 31, 31)
                        .addGroup(checkPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(discountLabel_sales)
                            .addComponent(billIDLabel_sales)
                            .addComponent(totalPriceLabel_sales)
                            .addGroup(checkPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(giftsListLabel_sales)
                                .addComponent(paymentLabel_sales))))
                    .addGroup(checkPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(isCreditUsed_sales)))
                .addGap(40, 40, 40)
                .addGroup(checkPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(giftsList_sales, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)
                    .addComponent(discountText_sales, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)
                    .addComponent(paymentText_sales, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)
                    .addComponent(billIDText_sales, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)
                    .addComponent(creditsUsedInput_sales, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)
                    .addComponent(totalPriceText_sales, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE))
                .addContainerGap())
        );
        checkPanelLayout.setVerticalGroup(
            checkPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(checkPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(checkPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(creditsUsedInput_sales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(isCreditUsed_sales))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(checkPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(billIDText_sales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(billIDLabel_sales))
                .addGap(20, 20, 20)
                .addGroup(checkPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(totalPriceLabel_sales)
                    .addComponent(totalPriceText_sales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(16, 16, 16)
                .addGroup(checkPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(discountLabel_sales, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(discountText_sales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(checkPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(paymentText_sales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(paymentLabel_sales))
                .addGap(18, 18, 18)
                .addGroup(checkPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(giftsListLabel_sales)
                    .addComponent(giftsList_sales, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(35, Short.MAX_VALUE))
        );

        goodsList_sales.setFont(new java.awt.Font("方正舒体", 0, 14)); // NOI18N
        goodsList_sales.setText("商品列表");

        deleteChosenGoods_sales.setText("删除选中商品");

        yes1.setText("确定");

        cancel1.setText("取消");
        cancel1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cancel1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout salesHandlingPanelLayout = new javax.swing.GroupLayout(salesHandlingPanel);
        salesHandlingPanel.setLayout(salesHandlingPanelLayout);
        salesHandlingPanelLayout.setHorizontalGroup(
            salesHandlingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(salesHandlingPanelLayout.createSequentialGroup()
                .addGroup(salesHandlingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(salesHandlingPanelLayout.createSequentialGroup()
                        .addGap(113, 113, 113)
                        .addComponent(yes1)
                        .addGap(126, 126, 126)
                        .addComponent(cancel1)
                        .addGap(136, 136, 136))
                    .addGroup(salesHandlingPanelLayout.createSequentialGroup()
                        .addGap(30, 30, 30)
                        .addGroup(salesHandlingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(goodsList_sale, javax.swing.GroupLayout.PREFERRED_SIZE, 433, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(goodsList_sales))
                        .addGap(33, 33, 33))
                    .addGroup(salesHandlingPanelLayout.createSequentialGroup()
                        .addGap(45, 45, 45)
                        .addComponent(goodsIDPanel_sales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, salesHandlingPanelLayout.createSequentialGroup()
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(deleteChosenGoods_sales)
                        .addGap(68, 68, 68)))
                .addGroup(salesHandlingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(salesHandlingPanelLayout.createSequentialGroup()
                        .addGap(9, 9, 9)
                        .addComponent(checkPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(salesHandlingPanelLayout.createSequentialGroup()
                        .addGap(34, 34, 34)
                        .addComponent(customerInfoPanel_sales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(753, 753, 753))
        );
        salesHandlingPanelLayout.setVerticalGroup(
            salesHandlingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(salesHandlingPanelLayout.createSequentialGroup()
                .addGroup(salesHandlingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(salesHandlingPanelLayout.createSequentialGroup()
                        .addGroup(salesHandlingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(salesHandlingPanelLayout.createSequentialGroup()
                                .addGap(54, 54, 54)
                                .addComponent(goodsIDPanel_sales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
                                .addComponent(goodsList_sales))
                            .addGroup(salesHandlingPanelLayout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(customerInfoPanel_sales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGroup(salesHandlingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(salesHandlingPanelLayout.createSequentialGroup()
                                .addGap(225, 225, 225)
                                .addComponent(deleteChosenGoods_sales)
                                .addGap(50, 50, 50)
                                .addGroup(salesHandlingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(yes1)
                                    .addComponent(cancel1)))
                            .addGroup(salesHandlingPanelLayout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addComponent(checkPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                    .addGroup(salesHandlingPanelLayout.createSequentialGroup()
                        .addGap(188, 188, 188)
                        .addComponent(goodsList_sale, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(38, Short.MAX_VALUE))
        );

        basePanel.addTab("销售处理", salesHandlingPanel);

        returnHandlingPanel.setBackground(new java.awt.Color(211, 220, 249));
        returnHandlingPanel.setPreferredSize(new java.awt.Dimension(837, 531));

        billIDPanel.setBackground(new java.awt.Color(211, 220, 249));
        billIDPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "输入账单编号", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        billIDText_return.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        billIDInput_return.setViewportView(billIDText_return);

        showBillInfo_return.setText("查询销售/账单信息");
        showBillInfo_return.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                showBillInfo_returnActionPerformed(evt);
            }
        });

        showReturnInfo_return.setText("显示退货信息");

        javax.swing.GroupLayout billIDPanelLayout = new javax.swing.GroupLayout(billIDPanel);
        billIDPanel.setLayout(billIDPanelLayout);
        billIDPanelLayout.setHorizontalGroup(
            billIDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(billIDPanelLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(billIDInput_return, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(28, 28, 28)
                .addGroup(billIDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(showReturnInfo_return)
                    .addComponent(showBillInfo_return))
                .addContainerGap(25, Short.MAX_VALUE))
        );
        billIDPanelLayout.setVerticalGroup(
            billIDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(billIDPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(billIDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(showBillInfo_return)
                    .addComponent(billIDInput_return, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, Short.MAX_VALUE)
                .addComponent(showReturnInfo_return)
                .addContainerGap())
        );

        goodsIDPanel_return.setBackground(new java.awt.Color(211, 220, 249));
        goodsIDPanel_return.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "输入商品标识", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        goodsIDText_return.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        goodsIDInput_return.setViewportView(goodsIDText_return);

        showGoodsInfo_return.setText("查询商品信息");
        showGoodsInfo_return.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                showGoodsInfo_returnActionPerformed(evt);
            }
        });

        goodsInfoTable_return.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null}
            },
            new String [] {
                "商品标识", "商品描述", "商品价格", "购买数量", "商品特价", "商品总价"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, true, true
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        goodsInfo_return.setViewportView(goodsInfoTable_return);

        javax.swing.GroupLayout goodsIDPanel_returnLayout = new javax.swing.GroupLayout(goodsIDPanel_return);
        goodsIDPanel_return.setLayout(goodsIDPanel_returnLayout);
        goodsIDPanel_returnLayout.setHorizontalGroup(
            goodsIDPanel_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(goodsIDPanel_returnLayout.createSequentialGroup()
                .addGroup(goodsIDPanel_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(goodsIDPanel_returnLayout.createSequentialGroup()
                        .addGap(21, 21, 21)
                        .addComponent(goodsIDInput_return, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(51, 51, 51)
                        .addComponent(showGoodsInfo_return))
                    .addGroup(goodsIDPanel_returnLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(goodsInfo_return, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)))
                .addContainerGap())
        );
        goodsIDPanel_returnLayout.setVerticalGroup(
            goodsIDPanel_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(goodsIDPanel_returnLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(goodsIDPanel_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(goodsIDInput_return, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(showGoodsInfo_return))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 17, Short.MAX_VALUE)
                .addComponent(goodsInfo_return, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        returnListTable.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        returnListTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null}
            },
            new String [] {
                "商品标识", "商品名称", "商品描述", "商品价格", "退回数量", "总价", "特价"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        returnList.setViewportView(returnListTable);

        returnListLabel.setFont(new java.awt.Font("方正舒体", 0, 14)); // NOI18N
        returnListLabel.setText("退货商品列表");

        yes2.setText("确定");

        cancel2.setText("取消");
        cancel2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cancel2ActionPerformed(evt);
            }
        });

        deleteChosenGoods_return.setText("删除选中商品");

        customerInfoPanel_return.setBackground(new java.awt.Color(211, 220, 249));
        customerInfoPanel_return.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "顾客信息", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        cosType_return.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "VIP顾客", "普通顾客" }));
        cosType_return.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cosType_returnActionPerformed(evt);
            }
        });

        VIPICLabel_return.setText("VIP标识：");

        VIPInfoText_return.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        VIPInfoInput_return.setViewportView(VIPInfoText_return);

        VIPIDHandIn_return.setText("提交");

        VIPIDcancel_return.setText("取消");

        javax.swing.GroupLayout customerInfoPanel_returnLayout = new javax.swing.GroupLayout(customerInfoPanel_return);
        customerInfoPanel_return.setLayout(customerInfoPanel_returnLayout);
        customerInfoPanel_returnLayout.setHorizontalGroup(
            customerInfoPanel_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(customerInfoPanel_returnLayout.createSequentialGroup()
                .addGroup(customerInfoPanel_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(customerInfoPanel_returnLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(customerInfoPanel_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cosType_return, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(customerInfoPanel_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(VIPIDcancel_return)
                                .addGroup(customerInfoPanel_returnLayout.createSequentialGroup()
                                    .addComponent(VIPICLabel_return)
                                    .addGap(18, 18, 18)
                                    .addComponent(VIPInfoInput_return, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addGroup(customerInfoPanel_returnLayout.createSequentialGroup()
                        .addGap(23, 23, 23)
                        .addComponent(VIPIDHandIn_return)))
                .addContainerGap(20, Short.MAX_VALUE))
        );
        customerInfoPanel_returnLayout.setVerticalGroup(
            customerInfoPanel_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(customerInfoPanel_returnLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(cosType_return, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addGroup(customerInfoPanel_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(VIPInfoInput_return, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(VIPICLabel_return))
                .addGap(18, 18, 18)
                .addGroup(customerInfoPanel_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(VIPIDHandIn_return)
                    .addComponent(VIPIDcancel_return))
                .addContainerGap(12, Short.MAX_VALUE))
        );

        check_return.setBackground(new java.awt.Color(211, 220, 249));
        check_return.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "结算", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        returnSumLabel.setText("应退金额");

        returnSumText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        returnSumText.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                returnSumTextActionPerformed(evt);
            }
        });

        returnIDLabel.setText("退款编号");

        returnIDText.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        returnIDText.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                returnIDTextActionPerformed(evt);
            }
        });

        returnGiftLabel.setText("退回赠品列表");

        returnGiftListTabel.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "赠品标识", "赠品描述", "赠品数量"
            }
        ));
        returnGiftList.setViewportView(returnGiftListTabel);

        javax.swing.GroupLayout check_returnLayout = new javax.swing.GroupLayout(check_return);
        check_return.setLayout(check_returnLayout);
        check_returnLayout.setHorizontalGroup(
            check_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(check_returnLayout.createSequentialGroup()
                .addGap(31, 31, 31)
                .addGroup(check_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(returnGiftList, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(returnGiftLabel)
                    .addGroup(check_returnLayout.createSequentialGroup()
                        .addGroup(check_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(returnSumLabel)
                            .addComponent(returnIDLabel))
                        .addGap(49, 49, 49)
                        .addGroup(check_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(returnIDText)
                            .addComponent(returnSumText, javax.swing.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        check_returnLayout.setVerticalGroup(
            check_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(check_returnLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(check_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(returnIDLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(returnIDText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(check_returnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(returnSumLabel)
                    .addComponent(returnSumText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(returnGiftLabel)
                .addGap(18, 18, 18)
                .addComponent(returnGiftList, javax.swing.GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE)
                .addContainerGap())
        );

        javax.swing.GroupLayout returnHandlingPanelLayout = new javax.swing.GroupLayout(returnHandlingPanel);
        returnHandlingPanel.setLayout(returnHandlingPanelLayout);
        returnHandlingPanelLayout.setHorizontalGroup(
            returnHandlingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(returnHandlingPanelLayout.createSequentialGroup()
                .addGroup(returnHandlingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(returnHandlingPanelLayout.createSequentialGroup()
                        .addGap(113, 113, 113)
                        .addComponent(yes2)
                        .addGap(94, 94, 94)
                        .addComponent(cancel2))
                    .addGroup(returnHandlingPanelLayout.createSequentialGroup()
                        .addGap(347, 347, 347)
                        .addComponent(deleteChosenGoods_return))
                    .addGroup(returnHandlingPanelLayout.createSequentialGroup()
                        .addGap(41, 41, 41)
                        .addGroup(returnHandlingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(billIDPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(returnList, javax.swing.GroupLayout.DEFAULT_SIZE, 434, Short.MAX_VALUE)
                            .addComponent(returnListLabel)
                            .addComponent(goodsIDPanel_return, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addGroup(returnHandlingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(returnHandlingPanelLayout.createSequentialGroup()
                        .addGap(51, 51, 51)
                        .addComponent(customerInfoPanel_return, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(returnHandlingPanelLayout.createSequentialGroup()
                        .addGap(27, 27, 27)
                        .addComponent(check_return, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(0, 0, 0))
        );
        returnHandlingPanelLayout.setVerticalGroup(
            returnHandlingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(returnHandlingPanelLayout.createSequentialGroup()
                .addGap(29, 29, 29)
                .addGroup(returnHandlingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(returnHandlingPanelLayout.createSequentialGroup()
                        .addComponent(billIDPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(goodsIDPanel_return, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(returnListLabel)
                        .addGap(18, 18, 18)
                        .addComponent(returnList, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(deleteChosenGoods_return)
                        .addGap(27, 27, 27)
                        .addGroup(returnHandlingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(yes2)
                            .addComponent(cancel2)))
                    .addGroup(returnHandlingPanelLayout.createSequentialGroup()
                        .addComponent(customerInfoPanel_return, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(check_return, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addGap(18, 18, 18))
        );

        basePanel.addTab("退货处理", returnHandlingPanel);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(basePanel, javax.swing.GroupLayout.PREFERRED_SIZE, 814, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(basePanel, javax.swing.GroupLayout.PREFERRED_SIZE, 560, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void addGoods_salesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addGoods_salesActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_addGoods_salesActionPerformed

private void cosType_salesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cosType_salesActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_cosType_salesActionPerformed

private void discountText_salesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_discountText_salesActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_discountText_salesActionPerformed

private void cancel1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancel1ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_cancel1ActionPerformed

private void showBillInfo_returnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showBillInfo_returnActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_showBillInfo_returnActionPerformed

private void showGoodsInfo_returnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showGoodsInfo_returnActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_showGoodsInfo_returnActionPerformed

private void cancel2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancel2ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_cancel2ActionPerformed

private void cosType_returnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cosType_returnActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_cosType_returnActionPerformed

private void returnIDTextActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_returnIDTextActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_returnIDTextActionPerformed

private void returnSumTextActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_returnSumTextActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_returnSumTextActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(SalesManagement.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(SalesManagement.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(SalesManagement.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(SalesManagement.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new SalesManagement().setVisible(true);
            }
        });
    }
}
